import request from '@/utils/request'

export function login(data) {
	return request({
		url: '/admin/backendUser/login',
		method: 'post',
		data
	})
}
/* export function login(_userCode, _userPassword, _yzm) {
	return request({
		url: '/app/backendUser/login',
		method: 'get',
		params: {
			userCode: _userCode,
			userPassword: _userPassword,
			yzm: _yzm
		}
	})
} */

export function getInfo(id) {
	return request({
		url: '/admin/backendUser/one/' + 1,
		method: 'get',
		params: {

		}
	})
}

export function logout() {
	return request({
		url: '/admin/backendUser/logout',
		method: 'post'
	})
}